<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script>
	function checkPasswd(boardQnA_no, boardQnA_pw){
		var check=document.checkPW.check_passwd.value;
		if(check==boardQnA_pw){
		location.href="/web/boardQnA/detail?boardQnA_no="+boardQnA_no;
		}else{
			alert("비밀번호가 일치하지 않습니다.");
			location.href="/web/boardQnA/list";
		}
	};
</script>
</head>
<body>
<!-- 상단 로그인 패널을 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<!-- 상단 및 좌측 메뉴(카테고리)리스트를 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<!--------------------------------------여기다가 각자 삽입------------------------------------>
<br><br><br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:15px;">
  <tr>
      <td style="border:1px solid #cdcdcd;padding:3px;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td style="border:1px solid #e6e6e6;padding:20px;">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		    <tr>
		        <td align="center" width="200">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
					    <td align="center"><img src="/web/resources/images/icon_secret.gif" border="0" alt="" /></td>
					</tr>
					<tr>
						<td align="center" height="40"><b><font color="#0B5E35" face="Tahoma" style="font-size:8pt">Enter</font> 
						<font color="#0B5E35" face="Tahoma" style="font-size:10pt">Password</font></b></td>
					</tr>
				</table>
				</td>
				<td>
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				    <tr>
				        <td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="100%" bgcolor="#333333" height="2"></td>
							</tr>
						</table>
						<table width="98%" height="40" border="0" cellpadding="6" cellspacing="0">
						   <tr>
							   <td valign="bottom"><img src="/web/resources/images/icon_alert.gif" border="0" alt="" />
									비밀글 입니다. 읽기 위해서 비밀번호를 입력해 주세요.</td>
							</tr>
					   </table>
					   <form name="checkPW">
						<table width="98%" border="0" cellspacing="0" cellpadding="6">
						   <tr>
							   <td width="34%" align="right"><font face="Tahoma" style="font-size:8pt"><b>password</b></font></td>
								<td width="66%"><input name="check_passwd" type="text" style="border:1 solid #999999" size="20"></td>
							</tr>
					   </table>
					   </form>
						<br>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						   <tr>
							 <td width="100%" bgcolor="#333333" height="2"></td>
						   </tr>
						</table>
						<table border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px;">
							<tr valign="bottom">
								<td><input type="image" src="/web/resources/images/btn_submit.gif" style="border:0;" 
									onclick="checkPasswd('${beans.boardQnA_no}','${beans.boardQnA_pw}')"/></td>
								<td width="15"></td>
								<td><img src="/web/resources/images/btn_cancel.gif" border="0" onClick="history.back();" style="border:0;cursor:hand;" alt="취소" /></td>
								</tr>
							</table>
							</td>
					    </tr>
					</table>
					</td>
			    </tr>
			</table>
			</td>
		</tr>
	</table>
	</td>
</tr>
</table>
<!--------------------------------------   삽입 끝       ------------------------------------>
</div> 

<!-- 하단 이용약관, 고객센터, 회사정보 등의 정보를 include로 삽입 -->
<div style="position:absolute; left:0; top:1200px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>
</body>
</html>